Skip to content

Ensure cargo_bin_dir exists during install#5526

Open
infifox wants to merge 1 commit into
DioxusLabs:mainfrom
infifox:patch-1
Open

Ensure cargo_bin_dir exists during install#5526
infifox wants to merge 1 commit into
DioxusLabs:mainfrom
infifox:patch-1

Conversation

@infifox

@infifox infifox commented May 2, 2026

Copy link
Copy Markdown

I ran into this issue when doing a fresh install:

❯ curl -sSL https://dioxus.dev/install.sh | bash
######################################################################## 100.0%
Archive:  /home/nixos/.dx/bin/dx.zip
  inflating: /home/nixos/.dx/bin/dx
cp: cannot create regular file '/home/nixos/.cargo/bin/dx': No such file or directory
error: Failed to copy dx to /home/nixos/.cargo/bin

If the ~/.cargo/bin dir doesn't exist yet, the script gets stuck trying to copy to it.

@infifox infifox requested a review from a team as a code owner May 2, 2026 23:44
@jkelleyrtp

Copy link
Copy Markdown
Member

Thanks for the PR! I think we should just not copy dx to .cargo/bin/ if .cargo doesn't exist. Not sure we want to create the .cargo directory ourselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants